package math.conversion;

/**
 *
 * @author Shimu
 */
public class UnitConverter {

    public UnitConverter() {
    }

    public double cmToInch(double cm) {
        return (cm * 1 / 2.54);
    }

    /**
     * Converts from meter to feet.
     * @param m
     * @return
     */
    public double meterToFeet(double m) {
        return (m * 1 / 0.3048);
    }

    /**
     * Converts from feet to meters.
     * @param feet
     * @return
     */
    public double feetToMeter(double feet) {
        return (feet * 0.3048);
    }

    /**
     * Converts from inches to centimeters.
     * @param inch
     * @return
     */
    public double inchToCm(double inch) {
        return (inch * 2.54);
    }


}
